gizmo: Chain up in snapshot if no snapshot func given
authorTimm Bäder <mail@baedert.org>
Thu, 11 May 2017 19:49:37 +0000 (21:49 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:12 +0000 (21:27 -0400)
I.e. when gizmo users just want to draw child widgets anyway and don't
do any custom drawing, they can simply pass NULL.

gtk/gtkgizmo.c

index 5c065e5fd930bb372eae4fa0385ddf9e00c1b5b2..38cd3d56b1c1a05c37370b3f4ab54effa6f0f15a 100644 (file)
@@ -46,6 +46,8 @@ gtk_gizmo_snapshot (GtkWidget   *widget,
 
   if (self->snapshot_func)
     self->snapshot_func (self, snapshot);
+  else
+    GTK_WIDGET_CLASS (gtk_gizmo_parent_class)->snapshot (widget, snapshot);
 }
 
 static void